<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: contracts/bancor/bancor.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ae9b15dd87e066e1908bbd90e8f38627.html">contracts</a></li><li class="navelem"><a class="el" href="dir_17f794113f3d2f5e8c50affd393f94f8.html">bancor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">bancor.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="bancor_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="eos_8hpp.html">eoslib/eos.hpp</a>&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="token_8hpp.html">eoslib/token.hpp</a>&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="db_8hpp.html">eoslib/db.hpp</a>&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="reflect_8hpp.html">eoslib/reflect.hpp</a>&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="generic__currency_8hpp.html">eoslib/generic_currency.hpp</a>&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="converter_8hpp.html">bancor/converter.hpp</a>&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="currency_8hpp.html">currency/currency.hpp</a>&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="namespacebancor.html">   16</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacebancor.html">bancor</a> {</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="namespacebancor.html#a9f9b21ac6bd6f6257a96dc058106341d">   17</a></span>&#160;   <span class="keyword">typedef</span> <a class="code" href="classeosio_1_1generic__currency.html">eosio::generic_currency&lt; eosio::token&lt;N(other),S(4,OTHER)&gt;</a> &gt;  <a class="code" href="namespacebancor.html#a9f9b21ac6bd6f6257a96dc058106341d">other_currency</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="namespacebancor.html#aea6f53e9c5f646f2cb55e93fadaf39c6">   18</a></span>&#160;   <span class="keyword">typedef</span> <a class="code" href="classeosio_1_1generic__currency.html">eosio::generic_currency&lt; eosio::token&lt;N(bancor),S(4,RELAY)&gt;</a> &gt; <a class="code" href="namespacebancor.html#aea6f53e9c5f646f2cb55e93fadaf39c6">relay_currency</a>;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="namespacebancor.html#a67a295dc91ccbf186740df1e76f9779f">   19</a></span>&#160;   <span class="keyword">typedef</span> <a class="code" href="classeosio_1_1generic__currency.html">eosio::generic_currency&lt; eosio::token&lt;N(currency),S(4,CUR)&gt;</a> &gt; <a class="code" href="namespacebancor.html#a67a295dc91ccbf186740df1e76f9779f">cur_currency</a>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="namespacebancor.html#a4c0d9a6bc63a6ab849f69a82b5f20a2f">   21</a></span>&#160;   <span class="keyword">typedef</span> converter&lt;relay_currency, other_currency, cur_currency &gt; <a class="code" href="namespacebancor.html#a4c0d9a6bc63a6ab849f69a82b5f20a2f">example_converter</a>;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;} </div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="ttc" id="token_8hpp_html"><div class="ttname"><a href="token_8hpp.html">token.hpp</a></div><div class="ttdoc">Defines types and ABI for standard token messages and database tables. </div></div>
<div class="ttc" id="reflect_8hpp_html"><div class="ttname"><a href="reflect_8hpp.html">reflect.hpp</a></div></div>
<div class="ttc" id="eos_8hpp_html"><div class="ttname"><a href="eos_8hpp.html">eos.hpp</a></div></div>
<div class="ttc" id="generic__currency_8hpp_html"><div class="ttname"><a href="generic__currency_8hpp.html">generic_currency.hpp</a></div></div>
<div class="ttc" id="converter_8hpp_html"><div class="ttname"><a href="converter_8hpp.html">converter.hpp</a></div></div>
<div class="ttc" id="namespacebancor_html_a4c0d9a6bc63a6ab849f69a82b5f20a2f"><div class="ttname"><a href="namespacebancor.html#a4c0d9a6bc63a6ab849f69a82b5f20a2f">bancor::example_converter</a></div><div class="ttdeci">converter&lt; relay_currency, other_currency, cur_currency &gt; example_converter</div><div class="ttdef"><b>Definition:</b> bancor.hpp:21</div></div>
<div class="ttc" id="namespacebancor_html_a67a295dc91ccbf186740df1e76f9779f"><div class="ttname"><a href="namespacebancor.html#a67a295dc91ccbf186740df1e76f9779f">bancor::cur_currency</a></div><div class="ttdeci">eosio::generic_currency&lt; eosio::token&lt; N(currency), S(4, CUR)&gt; &gt; cur_currency</div><div class="ttdef"><b>Definition:</b> bancor.hpp:19</div></div>
<div class="ttc" id="classeosio_1_1generic__currency_html"><div class="ttname"><a href="classeosio_1_1generic__currency.html">eosio::generic_currency</a></div><div class="ttdef"><b>Definition:</b> generic_currency.hpp:11</div></div>
<div class="ttc" id="namespacebancor_html_a9f9b21ac6bd6f6257a96dc058106341d"><div class="ttname"><a href="namespacebancor.html#a9f9b21ac6bd6f6257a96dc058106341d">bancor::other_currency</a></div><div class="ttdeci">eosio::generic_currency&lt; eosio::token&lt; N(other), S(4, OTHER)&gt; &gt; other_currency</div><div class="ttdef"><b>Definition:</b> bancor.hpp:17</div></div>
<div class="ttc" id="db_8hpp_html"><div class="ttname"><a href="db_8hpp.html">db.hpp</a></div></div>
<div class="ttc" id="currency_8hpp_html"><div class="ttname"><a href="currency_8hpp.html">currency.hpp</a></div></div>
<div class="ttc" id="namespacebancor_html"><div class="ttname"><a href="namespacebancor.html">bancor</a></div><div class="ttdef"><b>Definition:</b> bancor.hpp:16</div></div>
<div class="ttc" id="namespacebancor_html_aea6f53e9c5f646f2cb55e93fadaf39c6"><div class="ttname"><a href="namespacebancor.html#aea6f53e9c5f646f2cb55e93fadaf39c6">bancor::relay_currency</a></div><div class="ttdeci">eosio::generic_currency&lt; eosio::token&lt; N(bancor), S(4, RELAY)&gt; &gt; relay_currency</div><div class="ttdef"><b>Definition:</b> bancor.hpp:18</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
